<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue动态组件</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>

<body>
    <div id="Application">
        <input type="radio" value="page1" v-model="page" />页面1
        <input type="radio" value="page2" v-model="page" />页面2
        <div>{{page}}</div>
    </div>
    <script>
        const App = Vue.createApp({
            data() {
                return {
                    // 后面的值是字符串！,点击上面的radio将会将上面的value赋值给page,由v-model指定
                    page: "pagex"
                }
            }
        })

        App.mount("#Application") 
    </script>
</body>

</html>